﻿using DAL;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class B_TeaChoice
    {
        D_TeaChoice dal = new DAL.D_TeaChoice();

        public List<TeaChoice> GetList() // 对应向函B_T.cs文件getList()
        {
            return dal.getList();
        }
        public TeaChoice Select(Teacher teacher)// 对应向函B_T.cs文件select(Teacher)
        {
            var res = dal.select(teacher);
            return res;
        }

        public bool SaveResult(List<TeaChoice> tc)//对应向函B_T.cs文件save_list(List<t_data>)
        {
            return dal.saveResult(tc); ;
        }

        public bool Commit(TeaChoice model)//对应向函B_T.cs文件commit(t_data)
        {
            var res = dal.commit(model);
            return res == 1 ? true : false;
        }
    }
}
